package com.hudson.broker.handler.netty;

import com.hudson.broker.handler.HandlerProcesserManage;
import com.hudson.codec.domain.RemotingCommand;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class ProcesserHandler extends SimpleChannelInboundHandler<RemotingCommand> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, RemotingCommand remotingCommand) throws Exception {
        HandlerProcesserManage.execute(remotingCommand.getType(), channelHandlerContext, remotingCommand);
    }
}
